//
//  NewsCell.m
//  MtimeMovie
//
//  Created by lllyyy on 15/7/21.
//  Copyright (c) 2015年 lllyyy. All rights reserved.
//

#import "NewsCell.h"
#import "UIImageView+WebCache.h"
@implementation NewsCell

- (void)awakeFromNib {
   // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews{
    [super layoutSubviews];
    _titleLabel.text = _news.title;
    _summaryLabel.text = _news.summary;
    NSString *imageStr = _news.image;
    NSURL *url = [NSURL URLWithString:imageStr];
    [self.iconImage sd_setImageWithURL:url];
}
@end
